home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $VER: getxxx.rexx 1.0 (30.8.94) written by Robert Brandner
- **
- ** Demo of the usage of the GETCHAR, GETWORD and GETLINE commands
- */
-
- /* enable return codes */
-
- OPTIONS RESULTS
-
- /* is PolyEd out there ? */
-
- if ~SHOW("Ports", "POLYED.1") then do
- say "Please start PolyEd before running this program."
- exit
- end
-
- ADDRESS POLYED.1.1
-
- 'GETCHAR VAR C'
- 'GETWORD VAR W'
- 'GETLINE VAR L'
-
- say "Current character is '"||C||"'."
- say "Current word is '"||W||"'."
- say "Current line is '"||L||"'."
-
- /* The End */
-